package edu.whu.exception;

public class MyException extends Exception{

    public enum ErrorType {
        DOCUMENT_TYPE_ERROR,
        FILE_NOT_FOUND,
        DOCUMENT_READ_ERROR,
        ROOT_TYPE_ERROR,
        INSTANCE_ERROR,
        CLASS_NULL_ERROR,
        CLSS_NOT_FOUND,
        METHOD_INVOKE_ERROR,
        ERROR_TYPE,
    }
    public ErrorType errorType;

    public MyException(ErrorType errorType, String message) {
        super(message);
        this.errorType = errorType;
    }

    public ErrorType getErrorType() {
        return errorType;
    }
}
